//
//  AppDelegate.swift
//  DZYPageView
//
//  Created by dongzhenyu on 2017/7/6.
//  Copyright © 2017年 dongzhenyu. All rights reserved.
// method 方法  OC  function 函数 swift

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.
        return true
    }
}

//internal  //任何地方都能访问
// 获取随机颜色
func getRandomColor() -> UIColor {
    return UIColor(red: CGFloat(arc4random_uniform(256))/255.0, green: CGFloat(arc4random_uniform(256))/255.0, blue: CGFloat(arc4random_uniform(256))/255.0, alpha: 1.0)
}

